Skip to content

Document module lifecycle states in machine status#5211

Open
btshrewsbury-viam wants to merge 1 commit into
mainfrom
claude/module-status-states
Open

Document module lifecycle states in machine status#5211
btshrewsbury-viam wants to merge 1 commit into
mainfrom
claude/module-status-states

Conversation

@btshrewsbury-viam

Copy link
Copy Markdown
Collaborator

Closes #5206.

What

Documents the new per-module lifecycle states surfaced through GetMachineStatus (robot.v1.ModuleStatus), so users can tell whether a module downloaded, started, is running, or failed.

Source: viamrobotics/rdk#6120 and viamrobotics/api#867.

Changes (additive only)

  • docs/build-modules/module-reference.md — new ### Module status states subsection under Module lifecycle (reference): the ModuleStatus.State enum mapped to what the module process is doing, the accompanying fields (module_name, state, last_updated, error, consecutive_failures), a note distinguishing per-module state from the machine-level state, and a short diagnose-a-failed-module note.
  • docs/build-modules/deploy-a-module.md — new Troubleshooting expand entry that points to the reference subsection for diagnosing a module that fails to start or keeps restarting.

Notes

  • Enum names and field semantics verified against the api#867 proto diff (robot.v1.ModuleStatus.State): STATE_UNSPECIFIED, STATE_PENDING, STATE_STARTING, STATE_READY, STATE_UNHEALTHY, STATE_CLOSING. Uses the real enum names, not the announcement paraphrase.
  • The auto-generated robot API reference (static/include/robot/apis/generated/robot.md) does not surface ModuleStatus, so it was left untouched (no hand-edits to generated files).
  • Left as draft. make build-prod not run locally (coordinator builds serially); please verify the /reference/apis/robot/#getmachinestatus anchor resolves.

Add a Module status states subsection to the module developer reference
covering the ModuleStatus.State enum and its fields (state, last_updated,
error, consecutive_failures) as reported by GetMachineStatus, plus a
troubleshooting entry in the deploy guide for diagnosing a module that
failed to start.

Closes #5206
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 84fcbc8
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6a57af9104d1ad00087b31c4
😎 Deploy Preview https://deploy-preview-5211--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 44 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Jul 15, 2026
@btshrewsbury-viam
btshrewsbury-viam marked this pull request as ready for review July 15, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document module lifecycle states in machine status (Module Status API)

2 participants